/*
package com.example.Es;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Document(indexName = "title", type = "do")
public class TitleDocument implements Serializable {

    */
/**
     *
     *//*

    @Id
    @Field(type = FieldType.Long, store = true)
    private Long id;

    */
/**
     * 选中ik 分词器
     *//*

    @Field(type = FieldType.Text, store = true, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String titlename;
    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")

    private String description;


    public TitleDocument() {
    }

    public TitleDocument(Long id, String titlename, String description) {
        this.id = id;
        this.titlename = titlename;
        this.description = description;
    }
}

*/
